package mlz.f_object;

import org.junit.Test;

import java.io.FileNotFoundException;

/*
    框架测试类
 */
public class ObjectDemo {
    @Test
    public void test() throws FileNotFoundException, IllegalAccessException {
        //String name, int age, String gender, int money
        Student stu = new Student("张三", 18, "男", 1000);
        //String name, double sal
        Teacher t = new Teacher("lucy", 50000);

        //调用框架
        ObjectFrame.saveObject(stu);
        ObjectFrame.saveObject(t);

    }

}
